package com.xyh.springboot.model;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author xyh
 * @since 2020-12-25
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("t_user")
@ApiModel(value = "用户pojo对象",description = "这是用户对象")
public class User extends Model {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户主键id")
    @TableId(value = "user_pkid", type = IdType.AUTO)
    private Integer userPkid;
    @ApiModelProperty("用户注册名")
    private String username;
    @ApiModelProperty("用户注册密码")
    private String password;
    @ApiModelProperty("盐值")
    private String salt;
    @ApiModelProperty("用户昵称")
    private String nickname;
    @ApiModelProperty("注册时间")
    private LocalDateTime regTime;
    @ApiModelProperty(hidden = true)//hidden = true 不在api文档中显示
    private Integer fkDetailId;
    @ApiModelProperty(hidden = true)
    private Integer fkDeptId;
    @TableLogic
    private Integer deleted;
}
